{php}
    $filename = APP_PATH . 'admin/view/base/menu.json';
    $file = file_get_contents($filename);
    $menu = json_decode($file,true);
{/php}

{volist name="menu" id="menu"} 
	<li>
	    <h3><span onclick="show('menu{$key}','change{$key}')" id="change{$key}">+</span>{$menu.title}</h3>
	    <dl id="menu{$key}" style="display:none;">
	    	{volist name="menu.detail" id="url"}
	    	<dd><a href="{:url($url)}">{$key}</a></dd>
	    	{/volist}
	    </dl>
	</li>
{/volist}


<script type="text/javascript">
    function show(num,change){
            var menu=document.getElementById(num);
            var change=document.getElementById(change);
            if(change.innerHTML=="+"){
                    change.innerHTML="-";
            }else{
                    change.innerHTML="+";
            }
           if(menu.style.display=='none'){
                 menu.style.display='';
            }else{
                 menu.style.display='none';
            }
    }
</script>